<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>
	<title><ui:insert name="title">Elbis Kuha, bitches!!!</ui:insert></title>
</h:head>
<body>
	<h:outputStylesheet library="default" name="css/style.css" />
	<div id="menuContent">
		<div id="logo">
			<a href="/">Zenginiz aneynamıııı</a>
		</div>
		<div id="menu">
			<h:form id="login">
				<h:panelGrid columns="6" rendered="#{!login.loggedIn}">
					<h:outputText value="#{label.email}" />
					<h:inputText id="email" value="#{login.email}" tabindex="1" />
					<h:outputText value="#{label.password}" />
					<h:inputSecret id="password" value="#{login.password}" tabindex="2" />
					<h:commandLink value="#{label.login}" action="#{login.login}"
						class="button-link" tabindex="3" />
					<h:commandLink value="#{label.signup}" action="user:register"
						class="button-link" tabindex="4" />
				</h:panelGrid>
				<h:panelGrid columns="2" rendered="#{login.loggedIn}">
					<h:commandLink value="#{login.email}" action="#{login.viewGamer}" />
					<h:commandLink id="logout" class="button-link"
						value="#{label.logout}" action="#{login.logout}" />
				</h:panelGrid>
				<h:message for="login" class="error" />
			</h:form>
			<h:form id="languageForm">
				<h:panelGrid columns="2">
					<h:outputText value="#{label.language}" />
					<h:selectOneMenu id="language" value="#{language.currentLocale}" converter="#{languageConverter}"
						valueChangeListener="#{language.languageChanged}"
						onchange="submit()">
						<f:selectItems value="#{language.availableLanguages}" />
					</h:selectOneMenu>
				</h:panelGrid>
			</h:form>
		</div>
	</div>
</body>
</html>